package com.sat.goods.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.Data;

import java.io.Serializable;

@TableName("tb_spu")
@Data
public class Spu implements Serializable {

	@JsonSerialize(using = ToStringSerializer.class)
	@TableId(type = IdType.INPUT)
	private Long id;//主键     // #
	private String sn;//货号
	private String name;//SPU名
	private String caption;//副标题
	private Integer brandId;//品牌ID
	private Integer category1Id;//一级分类
	private Integer category2Id;//二级分类
	private Integer category3Id;//三级分类
	private Integer templateId;//模板ID
	private Integer freightId;//运费模板id
	private String image;//图片
	private String images;//图片列表
	private String saleService;//售后服务
	private String introduction;//介绍
	private String specItems;//规格列表
	private String paraItems;//参数列表
	private Integer saleNum;//销量   默认值0
	private Integer commentNum;//评论数  默认值0
	private String isMarketable;//是否上架 1
	private String isEnableSpec;//是否启用规格  1  0
	@TableLogic(value = "0",delval = "2")
	private String isDelete;//是否删除 1 正常  0 删除
	private String status;//审核状态 1 未审核

}
